package net.esj.basic.expression.formula;

import net.esj.basic.expression.ExpressionException;

public class AddFormula extends BaseFormula {

	public AddFormula(Number value) {
		super(value);
	}

	@Override
	public Number calc(Number num) throws ExpressionException {
		return num.doubleValue()+value.doubleValue();
	}

}
